<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- <table border="1">
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
    </table> -->
    <Script>
        // var sum=null;
        var rwo=prompt('行数')
        var cow=prompt('列数')
        document.write('<table border="1">')
        for(var i=1;i<=rwo;i++){
            document.write('<tr>')

             for(var j=1;j<=cow;j++){

                document.write('<td>123</td>')
               
             }

             document.write('</tr>')
        }
        document.write('<table>')
       
    </Script>
</body>
</html>